/* 购物车页面样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #ff6700;
}

.breadcrumb i {
    margin: 0 8px;
    font-size: 12px;
}

/* 购物车内容区 */
.cart-content {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* 购物车表格 */
.cart-table-container {
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background-color: #f7f7f7;
    padding: 15px 10px;
    text-align: left;
    font-weight: normal;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
}

.cart-table td {
    padding: 30px 10px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

/* 商品信息样式 */
.item-info {
    display: flex;
    align-items: center;
}

.item-image {
    width: 64px;
    height: 90px;
    margin-right: 15px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-title {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: normal;
}

.item-title a {
    color: #333;
    text-decoration: none;
}

.item-title a:hover {
    color: #ff6700;
}

.item-attrs {
    margin: 0;
    font-size: 12px;
    color: #999;
}

/* 价格样式 */
.item-price, .item-subtotal {
    font-size: 14px;
    color: #ff6700;
}

/* 数量控制 */
.quantity-control {
    display: flex;
    align-items: center;
    width: 120px;
}

.quantity-btn {
    width: 30px;
    height: 28px;
    border: 1px solid #e0e0e0;
    background-color: #f7f7f7;
    font-size: 16px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

.quantity-input {
    width: 40px;
    height: 26px;
    border: 1px solid #e0e0e0;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 14px;
}

/* 删除按钮 */
.delete-btn {
    cursor: pointer;
}

/* 空购物车提示 */
.empty-cart {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    text-align: center;
}

.empty-cart-icon {
    font-size: 60px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-cart-text {
    font-size: 16px;
    color: #999;
    margin-bottom: 20px;
}

.go-shopping-btn {
    padding: 8px 20px;
}

/* 购物车底部 */
.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.cart-footer-left {
    display: flex;
    align-items: center;
}

.cart-footer-left label {
    margin-right: 20px;
}

.cart-footer-left button {
    margin-right: 10px;
}

.cart-footer-right {
    display: flex;
    align-items: center;
}

.cart-total {
    margin-right: 20px;
    font-size: 14px;
}

.total-price {
    font-size: 18px;
    color: #ff6700;
    font-weight: bold;
}

.checkout-btn {
    padding: 0px 30px;
}

.checkout-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* 推荐图书 */
.recommended-books {
    margin-bottom: 30px;
}

.section-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 3px solid #ff6700;
}

.book-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.bookItem {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.bookItem:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.book-image {
    height: 300px;
    overflow: hidden;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-info {
    padding: 10px;
}

.book-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: normal;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.book-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.book-price {
    font-size: 16px;
    color: #ff6700;
    font-weight: bold;
}

/* 响应式布局 */
@media (max-width: 992px) {
    .book-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .book-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cart-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-footer-right {
        margin-top: 15px;
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 576px) {
    .book-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .item-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .item-image {
        margin-bottom: 10px;
    }
}
